const express = require('express');

//引入数据库
const db = require('../db/index');

//引入对应的模型对象
const Students = require('../models/students');

const router = new express.Router();

router.post('/student_info',async(req,res)=>{
    console.log(req.body);
    await db;
    const result = Students.create(req.body);
    console.log(result);
    res.send('学生信息提交成功')
})

router.get('/test',(req,res)=>{
    console.log("xxx");
    res.send("test");
})

module.exports = router;